package org.zjx.app.service;

import org.zjx.command.entity.Race;
import org.zjx.command.entity.Sects;
import org.zjx.command.state.AccountState;
import org.zjx.window.action.Action;
import org.zjx.window.window.IWindow;

public class AccountServiceAction extends Action {

    public AccountServiceAction(IWindow targetWindow) {
        super(targetWindow);
    }

    @Override
    protected void doExecute() throws Exception {

        AccountState accountState = new  AccountState();
        accountState.setAccountName("rlz20250702@163.com");
        accountState.setPassword("QQqq123456");
        accountState.setMainLocation("187,336");
        accountState.setSubLocation("120,426");
        accountState.setPlayerId("20041610");
        accountState.setRace(Race.XIAO_YAO_SHENG);
        accountState.setSect(Sects.HUA_GUO_SHAN);
        accountState.setUsername("法厄夫为人父");
        stateManager.registerState(accountState);
    }
}
